<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>订单详情 - 二手市场</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/order-detail.css">
</head>
<body>
<header class="header">
    <div class="container">
        <div class="logo">
            <img src="images/logo.png" alt="二手市场">
            <h1>二手市场</h1>
        </div>
        <nav class="nav">
            <a href="index.html">首页</a>
            <a href="products.html">商品列表</a>
            <a href="cart.html">购物车</a>
            <a href="orders.html">我的订单</a>
            <a href="login.html" id="auth-link">登录/注册</a>
        </nav>
    </div>
</header>

<main class="container">
    <div class="order-detail">
        <div class="order-header">
            <h1>订单详情 <span id="order-id"></span></h1>
            <div class="order-status" id="order-status">加载中...</div>
        </div>

        <div class="order-summary">
            <div class="summary-row">
                <span>订单编号:</span>
                <span id="order-number">-</span>
            </div>
            <div class="summary-row">
                <span>创建时间:</span>
                <span id="create-time">-</span>
            </div>
            <div class="summary-row">
                <span>支付时间:</span>
                <span id="pay-time">-</span>
            </div>
            <div class="summary-row">
                <span>订单金额:</span>
                <span id="total-amount">¥0.00</span>
            </div>
            <div class="summary-row">
                <span>支付方式:</span>
                <span id="payment-method">-</span>
            </div>
        </div>

        <div class="order-items">
            <h3>商品清单</h3>
            <div class="items-list" id="items-list">
                <!-- 订单商品将通过JS加载 -->
            </div>
        </div>

        <div class="order-actions" id="order-actions">
            <!-- 订单操作按钮将通过JS加载 -->
        </div>
    </div>
</main>

<footer class="footer">
    <div class="container">
        <p>&copy; 2025 二手市场. 保留所有权利.</p>
    </div>
</footer>

<script src="js/api.js"></script>
<script src="js/utils.js"></script>
<script src="js/order-detail.js"></script>
</body>
</html>